package com.kingsoft.dc.khaos.module.spark.metadata.preprocess.transform

/**
  * Created by haorenhui on 2019/07/17.
  */

case class AggregateInfo(filter:List[String]=List(),
                         extract_fields: List[AggOptionInfo] = List(),
                         advanced_options: AggAdvancedOption = null,
                         group_fields:List[String]=List()) {}

case class AggOptionInfo(field: String = "",
                         data_type: String = "",
                         length: Option[String],
                         option:String=""
                        )
case class AggAdvancedOption(cache_option:AggCacheOption=null,
                             partition:AggPartition=null)

case class AggPartition(on_off:Boolean,
                        nums:String="")
case class AggCacheOption(on_off:Boolean,
                          option:String="")
